package com.china08.yxyapi.entity.mg;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Field;

public class MongoBaseEntityNoId implements Serializable {

    private static final long serialVersionUID = 1356209333369397786L;

    @Indexed
    @Field(value = "created_by")
    private String createdBy;

    @Indexed
    @CreatedDate
    @Field(value = "created_date")
    private Date createdDate;

    @Field(value = "last_modified_by")
    private String lastModifiedBy;

    @LastModifiedDate
    @Field(value = "last_modified_date")
    private Date lastModifiedDate;

    // getters and setters
    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Timestamp createdDate) {
        this.createdDate = createdDate;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Timestamp lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

}